// pages/music/music.js
const {getMvHttp}= require("../../models/MV")
Page({
  data: {
    value:""
  },
  onLoad: async function (options) {
    var res = await getMvHttp();
    var value = [];
    res.data.data.forEach(element => {
      let {name,cover,id} = element;
      value.push({
        name,
        coverImgUrl:cover,
        id
      })
    });
    this.setData({
      value,
    })
    console.log(this.data.value);
  },
})